<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="明月">
    <title></title>
    <style>
        body {
            margin: 0;
        }

        * {
            box-sizing: border-box;
        }

        main {
            width: 500px;
            height: 800px;
            background-color: #999;
            margin: 5px auto;
        }

        ul {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        ul>li {
            position: relative;
            /* border: 1px solid #000; */
            overflow: hidden;
        }

        a {
            text-decoration: none;
        }

        .top {
            width: 400px;
            height: 530px;
            background-color: #fff;
            margin: 0 auto;
            position: relative;
        }

        .inner {
            width: 100%;
            height: 100%;
            border: 5px solid orange;
            position: absolute;
            top: 0;
            left:0px;
            display: none; 
        }

        img {
            margin: 10px 15px;
        }

        .outer {
            width: 400px;
            height: 200px;
            margin: 10px auto;
            background-color: #fff;
            display: flex;
        }
         .one-cover{
            width: 170px;
            height: 170px;
            padding: 15px 5px;
            position: absolute;
            left:20px;
            top:10px;
            background-color:#000;
            display: none;
         }
         .two-cover{
            width: 170px;
            height: 170px;
            padding: 15px 5px;
            position: absolute;
            left:20px;
            top:10px;
            background-color:#000;
             display: none; 
         }
        .sec-one {
            width: 170px;
            height: 170px;
            padding: 15px 5px;
            position: absolute;
            left: -100%;
            top: 15px;
            font-size: 14px; 
            opacity: 0;
        }
        .sec-two{
            width: 170px;
            height: 170px;
            padding: 15px 5px;
            position: absolute;
            top:0;
            left: -100%;
            font-size: 14px;
            opacity: 0; 
        }
    </style>
</head>

<body>
    <main>
        <div class="top">
            <a href="#"><img src="1.jpg" alt=""></a>
            <p style="font-size:14px;margin:10px">【金熹】设计上运用了多片层叠设计，形成立体倒放的花苞视觉效果，创意独特。浓烈的印花
                明快的色彩勾勒出美妙的夏日异国情调，优质雪纺面料让小衫更显质感穿着凉爽透气，
                做工相当考究</p>
            <div class="inner"></div>
        </div>
        
        <ul class="outer">
            <li class="one">
                <a href="#"><img src="2.jpg" alt=""></a>
                <div class="one-cover"></div>
                <section class="sec-one">
                    <h5>special品牌旗舰店</h5>
                    <p>最具有传奇浪漫色彩的欧洲经典设计，给你带来专属的魅力</p>
                </section>
            </li>

            <li class="two">
                <a href="#"><img src="3.jpg" alt=""></a>
                <div class="two-cover"></div>
                <section class="sec-two">
                    <h5>sophy橡菲旗舰店</h5>
                    <p>新款韩版微笑上衣圆领女短袖修身T恤</p>
                </section>
            </li>

        </ul>
    </main>
    <script src="./jquery.js"></script>
</body>
</html>
<script>
    $('.top').hover(function(){
        // stop() 先清除动画 让动画停止
           $('.inner').stop().fadeTo(500,1)
    },function(){
            $('.inner').stop().fadeTo(500,0)
    });

    $('.one').hover(function(){
         $('.one-cover').stop().fadeTo(500,0.1)
         $('.sec-one').animate({
             left:20,
             opacity: 1
        },500);
    },function(){
             $('.one-cover').stop().fadeTo(500,0)
         $('.sec-one').clearQueue().animate({
             left:-170,
             opacity: 0
        },500);
    });

   $('.two').hover(function(){
         $('.two-cover').stop().fadeTo(500,0.5)
         $('.sec-two').animate({
             left:20,
             opacity: 1
        },500);
    },function(){
             $('.two-cover').stop().fadeTo(500,0)
         $('.sec-two').clearQueue().animate({
             left:-170,
             opacity: 0
        },500);
    });


   
    

</script>